import { i18nRender } from '@/locales'

// 充值方式
export const RECHARGE_TYPE = {
  Wechat: {
    value: 1,
    desc: i18nRender('all.autotext267')
  },
  Alipay: {
    value: 2,
    desc: i18nRender('all.autotext1394')
  },
  Bank: {
    value: 3,
    desc: i18nRender('all.autotext283')
  }
}
// 付款类型
export const PAYMENT_TYPE = {
  RESEARCHER: {
    value: 1,
    desc: i18nRender('all.autotext1479')
  },
  SUBJECT: {
    value: 2,
    desc: i18nRender('all.autotext482')
  }
}
// 当前状态
export const PAYMENT_STATUS = {
  PENDING: {
    value: 1,
    desc: i18nRender('all.autotext609')
  },
  PAID: {
    value: 2,
    desc: i18nRender('all.autotext1224')
  }
}
// 资金流水类型
export const FINANCE_TYPE = {
  PENDING: {
    value: 1,
    desc: i18nRender('all.autotext894')
  },
  PAID: {
    value: -1,
    desc: i18nRender('all.autotext880')
  }
}

// 审核状态
export const AUDGET_STATUS = {
  UNAUDIT: {
    value: 0,
    desc: i18nRender('all.autotext934')
  },
  CONFIRM: {
    value: 1,
    desc: i18nRender('all.autotext528')
  },
  REFUSED: {
    value: 2,
    desc: i18nRender('all.autotext1010')
  }
}
export const COST_APPLY_STATUS = {
  EDITING: {
    value: 1,
    desc: i18nRender('all.autotext1080')
  },
  APPROVE: {
    value: 2,
    desc: i18nRender('all.autotext934')
  },
  REJECT: {
    value: 3,
    desc: i18nRender('all.autotext1010')
  },
  UNPAID: {
    value: 4,
    desc: i18nRender('all.autotext39')
  },
  PAID: {
    value: 5,
    desc: i18nRender('all.autotext141')
  },
  COMPLETED: {
    value: 6,
    desc: i18nRender('all.autotext6')
  }
}
// 费用科目研究者/受试者当前状态
export const EXPENSE__CURRENT_STATUS = {
  FORBIDDEN: {
    value: 0,
    desc: i18nRender('all.autotext567')
  },
  ENABLE: {
    value: 1,
    desc: i18nRender('all.autotext307')
  }
}
export default {
  RECHARGE_TYPE,
  PAYMENT_TYPE,
  PAYMENT_STATUS,
  FINANCE_TYPE,
  COST_APPLY_STATUS,
  EXPENSE__CURRENT_STATUS,
  AUDGET_STATUS
}
